import Index from '@/views/Index/index.vue';
import Error from '@/views/Error/index.vue';
import Home from '@/views/Index/home/index.vue';
import MoerDuo from '../views/Index/home/gengduo/MoreDuo.vue';
import Workbench from '../views/Workbench/index.vue';
const chiRouter: any = [
  {
    path: '/home/index',
    name: 'Index',
    meta: {
      isShow: true,
      title: '精品推荐'
    },
    component: Home
  },
  {
    path: '/gengduo',
    name: '更多',
    component: MoerDuo
  }
];
const router = [
  {
    path: '/',
    name: 'home',
    redirect: '/home/index'
  },
  {
    path: '/index',
    name: '首页',
    component: Index,
    children: chiRouter
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'errot',
    component: Error
  },
  {
    path: '/goods',
    name: 'goods',
    meta: {
      title: '工作台',
      isShow: true
    },
    component: () => Workbench
  }
];
export default router;
